<?php
/**
 * @package    Tourstart
 * @subpackage Tests
 * @author     Mike Bevz <mike.bevz@data2people.com>
 * @version    SVN: $Id: AllTests.php 14 2008-12-01 23:02:54Z michael.bevz $
 *
 */
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}

ini_set('apc.enabled', '0');

require_once 'testsConfig.php';

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

/**
 * Tests suits to include
 */
require_once dirname(__FILE__).'/Controller/AllTests.php';
require_once dirname(__FILE__).'/Manager/AllTests.php';
require_once dirname(__FILE__).'/Model/AllTests.php';
require_once dirname(__FILE__).'/Text/AllTests.php';

/**
 * Setup front controller
 */

/**
 * All Tourstart_Domain tests runner
 */
class AllTests {

    public static function main() {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite() {
        $suite = new PHPUnit_Framework_TestSuite('Data2People All Tests');
        $suite->addTestSuite('Manager_AllTests');
        $suite->addTestSuite('Model_AllTests');
        $suite->addTestSuite('Text_AllTests');
        /**
         * @todo For future development
         * $suite->addTestSuite('Controllers_AllTests');
         */
	
        //PHPUnit_Util_Filter::addDirectoryToFilter(dirname(__FILE__)."/../../libs");
        //PHPUnit_Util_Filter::addDirectoryToFilter(dirname(__FILE__));
        //PHPUnit_Util_Filter::addDirectoryToWhitelist(dirname(__FILE__)."/../../TV");


        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
    AllTests::main();
}